/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.doctor.netHosptial.dao;


import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.doctor.netHosptial.entity.NetOrders;
import com.jims.master.modules.doctor.netHosptial.entity.NetTreatRec;

import java.util.List;

/**
 * 检查治疗医嘱明细记录DAO接口
 * @author qlx
 * @version 2016-09-10
 */
@MyBatisDao
public interface NetTreatRecDao extends CrudDao<NetTreatRec> {

    /**
     * 查询最大itemNo
     * @param-visitDate
     *  @param-visitNo
     * @version 2016-09-10
     */
    public String findMaxItemNo(NetTreatRec netTreatRec);

    /**
     * 获得患者未传送的信息
     * @param-patientId
     * @param-visitDate
     * @param-visitNo
     * @return
     */
    public List<NetTreatRec> getInfoToSend(NetOrders netOrders);

    public void deleteFromAppointNo(NetTreatRec netTreatRec);

    /**
     * 由申请单取得相关的医嘱表、子表、门诊收费明细的关联信息serialNo
     * @param-appointNo
     * @return-visitDate
     * @return-visitNo
     * @return-serialNo
     */
    public NetTreatRec findInfoByAppointNo(NetTreatRec netTreatRec);

    /**
     * 由clinicMaser取门诊收费明细的关联信息
     * @param-visitDate
     * @param-visitNo
     * @param-item_class = 'E'
     */
    public List<NetTreatRec> findOutpTreatRecByClinic(NetTreatRec netTreatRec);
}